package com.example.demo.entity;

import java.util.Date;

public class User {
    private Integer id;
    private String name;
    private String pwd;
    private String email;

    private String lastLoginIp;

    private Integer role;
    private  Integer status;

    private Date lastLoginTime;

    public User() {
    }

    public User(Integer id, String name, String pwd, String email, String lastLoginIp, Integer role, Integer status, Date lastLoginTime) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.email = email;
        this.lastLoginIp = lastLoginIp;
        this.role = role;
        this.status = status;
        this.lastLoginTime = lastLoginTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", email='" + email + '\'' +
                ", lastLoginIP='" + lastLoginIp + '\'' +
                ", role=" + role +
                ", status=" + status +
                ", lastLoginTime=" + lastLoginTime +
                '}';
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
